# teste_cenario.py

import pygame,os,sys
from pygame.locals import *

pygame.init()

screen = pygame.display.set_mode((600,600))
pygame.display.set_caption('Testa Cenario4')

class Cenario:
    def __init__(self,nome_cenario):
        self.nome = nome_cenario       
       
        self.imagem_bloco4 = pygame.image.load('Imagens' + os.sep + 'bloco4.png').convert_alpha()
        
        self.background = pygame.image.load('Imagens' + os.sep + 'background_fase.jpg').convert()

        self.mapa_cenario4 = {self.imagem_bloco4:[(0,0),(30,0),(60,0),(90,0),(120,0),(150,0),(180,0),(210,0),(240,0),(270,0),(300,0),(330,0),(360,0),(390,0),(420,0),(450,0),(480,0),(510,0),(540,0),(570,0),
                                             (0,30),(570,30),
                                             (0,60),(570,60),
                                             (0,90),(570,90),
                                             (0,120),(570,120),

                                             (170,150),(400,150),
                                             (170,180),(400,180),
                                             (170,210),(400,210),
                                             (170,240),(400,240),
                                             (170,270),(400,270),
                                             (170,300),(400,300),
                                             (170,330),(400,330),
                                             
                                             (0,150),(570,150),
                                             (0,180),(570,180),
                                             (0,210),(570,210),
                                             (0,240),(570,240),
                                             (0,270),(570,270),
                                             (0,300),(570,300),
                                             (0,330),(570,330),
                                             (0,360),(570,360),
                                             (0,390),(570,390),
                                             (0,420),(570,420),
                                             (0,450),(570,450),
                                             (0,480),(570,480),
                                             (0,510),(570,510),
                                             (0,540),(570,540),
                                             (0,570),(30,570),(60,570),(90,570),(120,570),(150,570),(180,570),(210,570),(240,570),(270,570),(300,570),(330,570),(360,570),(390,570),(420,570),(450,570),(480,570),(510,570),(540,570),(570,570)]}



                                             

    def __str__(self):
        return self.nome


cenario4 = Cenario('Cenario fase4')

while True:
    for e in pygame.event.get():   # para a cobra se mexer
        if e.type == QUIT:
            sys.exit(0)

    screen.blit(cenario4.background,(0,0))

    j = 0
    for pos in cenario4.mapa_cenario4.values()[j]:
        screen.blit(cenario4.mapa_cenario4.keys()[0],pos)

    
    pygame.display.update()

